<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>第一次</title> 
</head>
<body>
    <script>
var y=5;
		for(var line=1;line<6;line++){    //219970242张轩珲
			for(var i=0;i<y;i++){
				document.write("&nbsp;");
			}
			y--;		
			for(var j=0;j<2*line-1;j++){
				document.write("*");
			}
			document.write("<br>");
		}

</script>

<script>
    for (a=0;a<5;a++) {
        for (c=a; c <=5; c++) {
            document.write("&emsp;");
        }
            for (b = 1; b<=5; b++) {
                document.write("&emsp;" + "*")
            }
        document.write("<br>");
    }
    
</script>
<script>
    for (var i = 1; i <= 3; i++) {
        for (var k = i * 2; k <= 5; k++) {
          document.write("&nbsp;");
        }
        for (var j = 1; j <= i * 2 - 1; j++) {
          document.write("*");
          document.write("&nbsp;");
        }
        document.write("<br>");
      }
      for (var i = 2; i >= 1; i--) {
        for (var k = 1; k <= 6 - 2 * i; k++) {
          document.write("&nbsp;");
        }
        for (var j = 1; j <= 2 * i - 1; j++) {
          document.write("*");
          document.write("&nbsp;");
        }
        document.write("<br>");
      }
</script>
</body>
</html>